<?
	$title = array(	'index' => 'Summary',
					'rating' => 'Rating config',
					'users' => 'Users',
					'users_view' => 'Users details',
					'cms' => 'Content management');
?>
<html>
	<head>
		<title>RateMyDoctor.com / Admin / <?=$title[$this->uri->segment(2)];?></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<base href="<?=base_url();?>"/>
		<link rel="stylesheet" type="text/css" href="css/main.css"/>
		<?php if (isset($rapyd_head)) echo $rapyd_head;?>
	</head>
	<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0" >
		<table width="100%" cellspacing="0" cellpadding="0">
			<tr><td><?php //require("menu.php"); ?></td></tr>
			<tr><td><? 
				if($auth["auth"] && $auth["additional"][0]['acc_type'] == "admin")
					include($layout); 
				else { 
					if($auth["auth"] && $auth["additional"][0]['acc_type'] != "admin"){
						$this->auth = $this->pear_auth->logout();
						redirect('', 'refresh');
					}
					require("admin/loginform.php");
					
				}
				
				?></td></tr>			
			<tr><td background="images/bottomBG.gif"><img width="2" height="39" src="images/bottomBG.gif"/></td></tr>			
	</body>
</html>